<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %> 
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<br/><br/><br/><a href='TbFlowServlet?method=showadd'><img src="./images/button-add.gif" border="0"/></a><br/>
<table>
<tr>
    <td>序号</td>
    <td>流程名称</td>
    <td>流程类型</td>
    <td>创建用户</td>
    <td>修改</td>
    <td>删除</td>
</tr>
<c:forEach items="${sessionScope.tbFlowList==null?'':sessionScope.tbFlowList}" var="tbFlow" varStatus="status">
<tr>
    <td>&nbsp;${status.index+1}</td>
    <td>
    <a href='javascript:void(0);' onclick='window.location="../TbFlowFlowNodeMiddleServlet?method=listByFlowId&flowId=${tbFlow.flowId}";'>
    ${tbFlow.flowName}
    </a>
    </td>
    <td>${tbFlow.tbFlowType==null?'无':tbFlow.tbFlowType.flowTypeName}</td>
    <td>${tbFlow.tbUsers.userName}</td>
    <td><a href='TbFlowServlet?method=listById&flowId=${tbFlow.flowId}'>修改</a></td>
    <td><a href='javascript:void(0);'onclick='if(confirm("确定要删除?"))window.location="../TbFlowServlet?method=del&delIds=${tbFlow.flowId}";'>删除</a></td>
</tr>
</c:forEach>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>